/**
 */
package org.mro.grib.model.files.secondEdition.dataRepresentations.util;

import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;

import org.eclipse.emf.ecore.util.Switch;

import org.mro.grib.model.files.secondEdition.dataRepresentations.*;

/**
 * <!-- begin-user-doc -->
 * The <b>Switch</b> for the model's inheritance hierarchy.
 * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
 * to invoke the <code>caseXXX</code> method for each class of the model,
 * starting with the actual class of the object
 * and proceeding up the inheritance hierarchy
 * until a non-null result is returned,
 * which is the result of the switch.
 * <!-- end-user-doc -->
 * @see org.mro.grib.model.files.secondEdition.dataRepresentations.DataRepresentationsPackage
 * @generated
 */
public class DataRepresentationsSwitch<T> extends Switch<T> {
	/**
	 * The cached model package
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected static DataRepresentationsPackage modelPackage;

	/**
	 * Creates an instance of the switch.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public DataRepresentationsSwitch() {
		if (modelPackage == null) {
			modelPackage = DataRepresentationsPackage.eINSTANCE;
		}
	}

	/**
	 * Checks whether this is a switch for the given package.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @parameter ePackage the package in question.
	 * @return whether this is a switch for the given package.
	 * @generated
	 */
	@Override
	protected boolean isSwitchFor(EPackage ePackage) {
		return ePackage == modelPackage;
	}

	/**
	 * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @return the first non-null result returned by a <code>caseXXX</code> call.
	 * @generated
	 */
	@Override
	protected T doSwitch(int classifierID, EObject theEObject) {
		switch (classifierID) {
			case DataRepresentationsPackage.IDATA_REPRESENTATION: {
				IDataRepresentation iDataRepresentation = (IDataRepresentation)theEObject;
				T result = caseIDataRepresentation(iDataRepresentation);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case DataRepresentationsPackage.DATA_REPRESENTATION_TEMPLATE50: {
				DataRepresentationTemplate50 dataRepresentationTemplate50 = (DataRepresentationTemplate50)theEObject;
				T result = caseDataRepresentationTemplate50(dataRepresentationTemplate50);
				if (result == null) result = caseIDataRepresentation(dataRepresentationTemplate50);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case DataRepresentationsPackage.DATA_REPRESENTATION_TEMPLATE51: {
				DataRepresentationTemplate51 dataRepresentationTemplate51 = (DataRepresentationTemplate51)theEObject;
				T result = caseDataRepresentationTemplate51(dataRepresentationTemplate51);
				if (result == null) result = caseDataRepresentationTemplate50(dataRepresentationTemplate51);
				if (result == null) result = caseIDataRepresentation(dataRepresentationTemplate51);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case DataRepresentationsPackage.DATA_REPRESENTATION_TEMPLATE52: {
				DataRepresentationTemplate52 dataRepresentationTemplate52 = (DataRepresentationTemplate52)theEObject;
				T result = caseDataRepresentationTemplate52(dataRepresentationTemplate52);
				if (result == null) result = caseDataRepresentationTemplate50(dataRepresentationTemplate52);
				if (result == null) result = caseIDataRepresentation(dataRepresentationTemplate52);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case DataRepresentationsPackage.DATA_REPRESENTATION_TEMPLATE53: {
				DataRepresentationTemplate53 dataRepresentationTemplate53 = (DataRepresentationTemplate53)theEObject;
				T result = caseDataRepresentationTemplate53(dataRepresentationTemplate53);
				if (result == null) result = caseDataRepresentationTemplate52(dataRepresentationTemplate53);
				if (result == null) result = caseDataRepresentationTemplate50(dataRepresentationTemplate53);
				if (result == null) result = caseIDataRepresentation(dataRepresentationTemplate53);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case DataRepresentationsPackage.DATA_REPRESENTATION_TEMPLATE54: {
				DataRepresentationTemplate54 dataRepresentationTemplate54 = (DataRepresentationTemplate54)theEObject;
				T result = caseDataRepresentationTemplate54(dataRepresentationTemplate54);
				if (result == null) result = caseIDataRepresentation(dataRepresentationTemplate54);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case DataRepresentationsPackage.DATA_REPRESENTATION_TEMPLATE55: {
				DataRepresentationTemplate55 dataRepresentationTemplate55 = (DataRepresentationTemplate55)theEObject;
				T result = caseDataRepresentationTemplate55(dataRepresentationTemplate55);
				if (result == null) result = caseIDataRepresentation(dataRepresentationTemplate55);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case DataRepresentationsPackage.DATA_REPRESENTATION_TEMPLATE541: {
				DataRepresentationTemplate541 dataRepresentationTemplate541 = (DataRepresentationTemplate541)theEObject;
				T result = caseDataRepresentationTemplate541(dataRepresentationTemplate541);
				if (result == null) result = caseIDataRepresentation(dataRepresentationTemplate541);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case DataRepresentationsPackage.DATA_REPRESENTATION_TEMPLATE550: {
				DataRepresentationTemplate550 dataRepresentationTemplate550 = (DataRepresentationTemplate550)theEObject;
				T result = caseDataRepresentationTemplate550(dataRepresentationTemplate550);
				if (result == null) result = caseIDataRepresentation(dataRepresentationTemplate550);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case DataRepresentationsPackage.DATA_REPRESENTATION_TEMPLATE551: {
				DataRepresentationTemplate551 dataRepresentationTemplate551 = (DataRepresentationTemplate551)theEObject;
				T result = caseDataRepresentationTemplate551(dataRepresentationTemplate551);
				if (result == null) result = caseDataRepresentationTemplate550(dataRepresentationTemplate551);
				if (result == null) result = caseIDataRepresentation(dataRepresentationTemplate551);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case DataRepresentationsPackage.DATA_REPRESENTATION_TEMPLATE561: {
				DataRepresentationTemplate561 dataRepresentationTemplate561 = (DataRepresentationTemplate561)theEObject;
				T result = caseDataRepresentationTemplate561(dataRepresentationTemplate561);
				if (result == null) result = caseIDataRepresentation(dataRepresentationTemplate561);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case DataRepresentationsPackage.DATA_REPRESENTATION_TEMPLATE5200: {
				DataRepresentationTemplate5200 dataRepresentationTemplate5200 = (DataRepresentationTemplate5200)theEObject;
				T result = caseDataRepresentationTemplate5200(dataRepresentationTemplate5200);
				if (result == null) result = caseIDataRepresentation(dataRepresentationTemplate5200);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			default: return defaultCase(theEObject);
		}
	}

	/**
	 * Returns the result of interpreting the object as an instance of '<em>IData Representation</em>'.
	 * <!-- begin-user-doc -->
	 * This implementation returns null;
	 * returning a non-null result will terminate the switch.
	 * <!-- end-user-doc -->
	 * @param object the target of the switch.
	 * @return the result of interpreting the object as an instance of '<em>IData Representation</em>'.
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
	 * @generated
	 */
	public T caseIDataRepresentation(IDataRepresentation object) {
		return null;
	}

	/**
	 * Returns the result of interpreting the object as an instance of '<em>Data Representation Template50</em>'.
	 * <!-- begin-user-doc -->
	 * This implementation returns null;
	 * returning a non-null result will terminate the switch.
	 * <!-- end-user-doc -->
	 * @param object the target of the switch.
	 * @return the result of interpreting the object as an instance of '<em>Data Representation Template50</em>'.
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
	 * @generated
	 */
	public T caseDataRepresentationTemplate50(DataRepresentationTemplate50 object) {
		return null;
	}

	/**
	 * Returns the result of interpreting the object as an instance of '<em>Data Representation Template51</em>'.
	 * <!-- begin-user-doc -->
	 * This implementation returns null;
	 * returning a non-null result will terminate the switch.
	 * <!-- end-user-doc -->
	 * @param object the target of the switch.
	 * @return the result of interpreting the object as an instance of '<em>Data Representation Template51</em>'.
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
	 * @generated
	 */
	public T caseDataRepresentationTemplate51(DataRepresentationTemplate51 object) {
		return null;
	}

	/**
	 * Returns the result of interpreting the object as an instance of '<em>Data Representation Template52</em>'.
	 * <!-- begin-user-doc -->
	 * This implementation returns null;
	 * returning a non-null result will terminate the switch.
	 * <!-- end-user-doc -->
	 * @param object the target of the switch.
	 * @return the result of interpreting the object as an instance of '<em>Data Representation Template52</em>'.
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
	 * @generated
	 */
	public T caseDataRepresentationTemplate52(DataRepresentationTemplate52 object) {
		return null;
	}

	/**
	 * Returns the result of interpreting the object as an instance of '<em>Data Representation Template53</em>'.
	 * <!-- begin-user-doc -->
	 * This implementation returns null;
	 * returning a non-null result will terminate the switch.
	 * <!-- end-user-doc -->
	 * @param object the target of the switch.
	 * @return the result of interpreting the object as an instance of '<em>Data Representation Template53</em>'.
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
	 * @generated
	 */
	public T caseDataRepresentationTemplate53(DataRepresentationTemplate53 object) {
		return null;
	}

	/**
	 * Returns the result of interpreting the object as an instance of '<em>Data Representation Template54</em>'.
	 * <!-- begin-user-doc -->
	 * This implementation returns null;
	 * returning a non-null result will terminate the switch.
	 * <!-- end-user-doc -->
	 * @param object the target of the switch.
	 * @return the result of interpreting the object as an instance of '<em>Data Representation Template54</em>'.
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
	 * @generated
	 */
	public T caseDataRepresentationTemplate54(DataRepresentationTemplate54 object) {
		return null;
	}

	/**
	 * Returns the result of interpreting the object as an instance of '<em>Data Representation Template55</em>'.
	 * <!-- begin-user-doc -->
	 * This implementation returns null;
	 * returning a non-null result will terminate the switch.
	 * <!-- end-user-doc -->
	 * @param object the target of the switch.
	 * @return the result of interpreting the object as an instance of '<em>Data Representation Template55</em>'.
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
	 * @generated
	 */
	public T caseDataRepresentationTemplate55(DataRepresentationTemplate55 object) {
		return null;
	}

	/**
	 * Returns the result of interpreting the object as an instance of '<em>Data Representation Template541</em>'.
	 * <!-- begin-user-doc -->
	 * This implementation returns null;
	 * returning a non-null result will terminate the switch.
	 * <!-- end-user-doc -->
	 * @param object the target of the switch.
	 * @return the result of interpreting the object as an instance of '<em>Data Representation Template541</em>'.
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
	 * @generated
	 */
	public T caseDataRepresentationTemplate541(DataRepresentationTemplate541 object) {
		return null;
	}

	/**
	 * Returns the result of interpreting the object as an instance of '<em>Data Representation Template550</em>'.
	 * <!-- begin-user-doc -->
	 * This implementation returns null;
	 * returning a non-null result will terminate the switch.
	 * <!-- end-user-doc -->
	 * @param object the target of the switch.
	 * @return the result of interpreting the object as an instance of '<em>Data Representation Template550</em>'.
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
	 * @generated
	 */
	public T caseDataRepresentationTemplate550(DataRepresentationTemplate550 object) {
		return null;
	}

	/**
	 * Returns the result of interpreting the object as an instance of '<em>Data Representation Template551</em>'.
	 * <!-- begin-user-doc -->
	 * This implementation returns null;
	 * returning a non-null result will terminate the switch.
	 * <!-- end-user-doc -->
	 * @param object the target of the switch.
	 * @return the result of interpreting the object as an instance of '<em>Data Representation Template551</em>'.
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
	 * @generated
	 */
	public T caseDataRepresentationTemplate551(DataRepresentationTemplate551 object) {
		return null;
	}

	/**
	 * Returns the result of interpreting the object as an instance of '<em>Data Representation Template561</em>'.
	 * <!-- begin-user-doc -->
	 * This implementation returns null;
	 * returning a non-null result will terminate the switch.
	 * <!-- end-user-doc -->
	 * @param object the target of the switch.
	 * @return the result of interpreting the object as an instance of '<em>Data Representation Template561</em>'.
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
	 * @generated
	 */
	public T caseDataRepresentationTemplate561(DataRepresentationTemplate561 object) {
		return null;
	}

	/**
	 * Returns the result of interpreting the object as an instance of '<em>Data Representation Template5200</em>'.
	 * <!-- begin-user-doc -->
	 * This implementation returns null;
	 * returning a non-null result will terminate the switch.
	 * <!-- end-user-doc -->
	 * @param object the target of the switch.
	 * @return the result of interpreting the object as an instance of '<em>Data Representation Template5200</em>'.
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
	 * @generated
	 */
	public T caseDataRepresentationTemplate5200(DataRepresentationTemplate5200 object) {
		return null;
	}

	/**
	 * Returns the result of interpreting the object as an instance of '<em>EObject</em>'.
	 * <!-- begin-user-doc -->
	 * This implementation returns null;
	 * returning a non-null result will terminate the switch, but this is the last case anyway.
	 * <!-- end-user-doc -->
	 * @param object the target of the switch.
	 * @return the result of interpreting the object as an instance of '<em>EObject</em>'.
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject)
	 * @generated
	 */
	@Override
	public T defaultCase(EObject object) {
		return null;
	}

} //DataRepresentationsSwitch
